package soft.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import soft.mapper.CourseMapper;
import soft.pojo.Course;
import soft.service.CourseService;

import java.util.List;

@Service
public class CourseServiceImpl implements CourseService {
    @Autowired
    private CourseMapper courseMapper;


    @Override
    public Course getById(String courseId) {
        return courseMapper.getById(courseId);
    }

    @Override
    public boolean insert(Course bean) {
        return courseMapper.insert(bean);
    }

    @Override
    public boolean update(Course bean) {
        return courseMapper.update(bean);
    }

    @Override
    public List<Course> getList() {
        return courseMapper.getList();
    }

    @Override
    public boolean delete(String courseId) {
        return courseMapper.delete(courseId);
    }
}
